The C code in your library must interact with Dreamweaver's JavaScript interpreter at three different times:
![]() |
At startup, to register the library's functions. |
![]() |
When the function is called, to unpack the arguments that are being passed from JavaScript to C. |
![]() |
Before the function returns, to package the return value. |
To accomplish these tasks, the interpreter defines several data types and exposes an API. Definitions for the following data types and functions appear in the file mm_jsapi.h. For your library to work properly, you must include mm_jsapi.h at the top of each file in your library with the following line:
#include "mm_jsapi.h"